#include <iostream>
#include <string>
#include <unordered_map>

/**
 * NowCoder KY93 WERTYU
 */

std::string lines[4] = {
    "1234567890-=",
    "QWERTYUIOP[]\\",
    "ASDFGHJKL;'",
    "ZXCVBNM,./"
};

int main() {
    // Precompute left key mapping
    std::unordered_map<char, char> leftKeyMap;
    for (int l = 0; l < 4; l++) {
        std::string &line = lines[l];
        for (int i = 1; i < line.length(); i++) {
            char cur = line[i], left = line[i - 1];
            leftKeyMap.insert(std::make_pair(cur, left));
        }
    }
    leftKeyMap.insert(std::make_pair(' ', ' '));

    // Read and process lines
    std::string txt;
    while (std::getline(std::cin, txt)) {
        for (int i = 0; i < txt.length(); i++)
            txt[i] = leftKeyMap[txt[i]];
        printf("%s\n", txt.c_str());
    }

    return 0;
}